package org.wjy.post.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**     
 * 类名称：User   
 * 类描述：用户信息实体
 * 创建人：anan   
 * 创建时间：2012-12-21 下午10:55:19   
 * 修改人：anan  
 * 修改时间：2012-12-21 下午10:55:19   
 * 修改备注：   
 * @version        
 * */
@Entity
@Table(name = "orders")
public class Orders {
	/**
	 * 用户id
	 */
	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int id;
	/**
	 * 用户编号
	 */
	
	@Column(name = "orderid", length = 255)
	private String orderid;
	@Column(name = "customerNo", length = 255)
	private String customerNo;
	
	/**
	 * 用户名字
	 */
	@Column(name = "goodsnum", length = 10)
	private int goodsnum;
	
	/**
	 * 用户登录密码
	 */
	@Column(name = "payable")
	private double payable;
	
	@Column(name = "cre_time", length = 255)
	private String cre_time;

	@Column(name = "status", length = 255)
	private int status;
	
    public Orders(){
    	
    }
	public Orders(int id, String customerNo, int goodsnum) {
		this.id = id;
		this.customerNo = customerNo;
		this.goodsnum = goodsnum;
	}

	public Orders(String customerNo, int goodsnum) {
		this.customerNo = customerNo;
		this.goodsnum = goodsnum;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCustomerNo() {
		return customerNo;
	}

	public void setCustomerNo(String customerNo) {
		this.customerNo = customerNo;
	}

	public int getGoodsnum() {
		return goodsnum;
	}

	public void setGoodsnum(int goodsnum) {
		this.goodsnum = goodsnum;
	}

	public double getPayable() {
		return payable;
	}

	public void setPayable(double payable) {
		this.payable = payable;
	}

	public String getCre_time() {
		return cre_time;
	}

	public void setCre_time(String cre_time) {
		this.cre_time = cre_time;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}
	
	public String getOrderid() {
		return orderid;
	}

	public void setOrderid(String orderid) {
		this.orderid = orderid;
	}
	@Override
	public String toString() {
		return "Orders [id=" + id + ", orderid=" + orderid + ", customerNo="
				+ customerNo + ", goodsnum=" + goodsnum + ", payable="
				+ payable + ", cre_time=" + cre_time + ", status=" + status
				+ "]";
	}


	
	

}
